package com.service.imp;

import com.mapper.LunBoMapper_db;
import com.pojo.LunBo_db;
import com.service.LunBoService_db;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LunBoServiceImp_db implements LunBoService_db {

    @Autowired
    private LunBoMapper_db lunBoMapperDb;

    @Override
    public List<LunBo_db> list(Integer del) {
        return lunBoMapperDb.list(del);
    }

    @Override
    public List<LunBo_db> listAll() {
        return lunBoMapperDb.listAll();
    }

    @Override
    public LunBo_db findById(Integer lId) {
        return lunBoMapperDb.findById(lId);
    }

    @Override
    public List<LunBo_db> findByDel(Integer del) {
        return lunBoMapperDb.findByDel(del);
    }

    @Override
    public Integer add(String photo, Integer del) {
        return lunBoMapperDb.add(photo,del);
    }

    @Override
    public Integer update(LunBo_db lunBoDb) {
        return lunBoMapperDb.update(lunBoDb);
    }

    @Override
    public Integer del(Integer lId) {
        return lunBoMapperDb.del(lId);
    }

}
